@import "_variables";

html {
  /*禁用iPhone中Safari的字号自动调整*/
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  /* 解决IOS默认滑动很卡的情况 */
  -webkit-overflow-scrolling: touch;
  height: 100%;
  max-width: 600px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

body {
  height: 100%;
  position: relative;
  -webkit-tap-hightlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  border: none;
  width: 100%;
  margin: 0;
  background-color: @body-background-base !important;
  overflow: hidden;
}

#root{
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: #f9f9f9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}


/* 清零 */
*:focus {
  outline: none;
}

.am-list-item .am-input-search,
.am-list-item .am-input-clear {
  box-sizing: content-box;
}

/*去除iPhone中默认的input样式*/
input {
  -webkit-appearance: none;
  resize: none;
}

a {
  color: @primary;
  text-decoration: none;
}

/*取消链接高亮*/
div,
ul,
li,
ol,
h1,
h2,
h3,
h4,
h5,
h6,
input,
textarea,
select,
select,
p,
dl,
dt,
dd,
a,
img,
button,
form,
table,
th,
th,
tr,
th,
tbody,
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  -webkit-tap-hightlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 0;
  border: none;
}

/*设置HTML5元素为块级元素*/
article,
aside,
details,
figcaption,
figure,
footer,
hgroup,
menu,
nav,
section {
  display: block;
}

/*图片自适应*/
img {
  max-width: 100%;
  height: auto;
  width: auto \9;
  /*IE8*/
  -ms-interpolation-mode: bicubic;
  /*为了照顾IE图片缩放失真*/
  vertical-align: top;
  border: none;
}

* {
  user-select: none;
}
